<div class="product-nav">
	<a href="<?php echo site_url('news');?>" class="product-back">Back to News</a>
	<?php if (!empty($prev)): ?>
		<a href="<?php echo site_url('news/'.$prev['id'].'/'.$prev['slug']) ?>" title="<?php echo htmlentities($prev['title']); ?>" class="product-prev">&lt;</a>
	<?php endif ?>
	<?php if (!empty($next)): ?>
		<a href="<?php echo site_url('news/'.$next['id'].'/'.$next['slug']) ?>" title="<?php echo htmlentities($next['title']); ?>" class="product-next">&gt;</a>	
	<?php endif ?>
</div>

<article class="news">
	<header class="news-header">
		<!-- <div class="category-head">News Category</div> -->
		<h1 class="news-title"><?php echo $news['title'];?></h1>
		<div class="news-share">
	    	<a title="Share on Facebook" class="share-facebook" href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(site_url('news/'.$news['id'].'/'.$news['slug'])); ?>&t=<?php echo $news['title']; ?>" target="_blank"></a>
	    	<a title="Share on Twitter" class="share-twitter" href="https://twitter.com/share?url=<?php echo urlencode(site_url('news/'.$news['id'].'/'.$news['slug'])); ?>" target="_blank"></a>
		</div>
	</header>
	<div class="news-detail">
		<?php echo $news['description'];?>
	</div>
	<aside>
		<h3>Latest News</h3>
		<ul>
			<?php foreach ($latest_news as $n): ?>
				<li>
					<a href="<?php echo site_url('news/'.$n['id'].'/'.$n['slug']) ?>" class="title" title="<?php echo htmlentities($n['title']); ?>"><?php echo $n['title']; ?></a>
					<a href="<?php echo site_url('news/'.$n['id'].'/'.$n['slug']) ?>" class="readmore" title="<?php echo htmlentities($n['title']); ?>">Read more</a>
				</li>
			<?php endforeach ?>
		</ul>
	</aside>
	<div class="clear"></div>
</article>